/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.globalFilterItem {
  line-height: $ouiSizeL + $ouiSizeXS;
  border: none;
  color: $ouiTextColor;

  &:not(.globalFilterItem-isDisabled) {
    @include ouiFormControlDefaultShadow;
  }
}

.globalFilterItem-isDisabled {
  background-color: transparentize($ouiColorLightShade, .4);
  text-decoration: line-through;
  font-weight: $ouiFontWeightRegular;
  font-style: italic;
}

.globalFilterItem-isPinned {
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: $ouiSizeXS;
    background-color: $ouiColorSuccess;
    border-top-left-radius: calc($ouiBorderRadius / 2);
    border-bottom-left-radius: calc($ouiBorderRadius / 2);
  }
}
